import { _decorator, Component, Node } from 'cc';
import { StorageUtil } from './StorageUtil';
import EventMgr from './EventManager';
import { EventType } from './enumType';
import { PathManager } from './PathManager';
const { ccclass, property } = _decorator;

@ccclass('gameMgr')
export class gameMgr extends Component {
    protected onLoad(): void {
        PathManager.Instance.init(StorageUtil.getObj("BallPath"),35);
    }
    play() {
        // 绘制保存的路径
        EventMgr.Instance.emit(EventType.drawBezierCurves, false);
        EventMgr.Instance.emit(EventType.play);
    }
}